import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Append from '@/components/work/Append'
import Test from '@/components/test/Test'
import clipboard from 'clipboard';
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

Vue.use(ViewUI);
Vue.use(Router)
//注册到vue原型上
Vue.prototype.clipboard = clipboard;


export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/append',
      name: 'Append',
      component: Append
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
  ]
})
